<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>tree</title>
  <link rel="stylesheet" href="./css/layui.css">
  <link rel="stylesheet" href="./css/tree.css">
  <script src="./layui.js"></script>
  <script src="./jquery-3.5.1.min.js"></script>
  <!-- <script src="./tree4.js"></script> -->
  <script src="./data.js"></script>
  <script src="./tree3.js"></script>
  <script src="./perfect-scrollbar.js"></script>
  <!-- <script src="./function.js"></script>
  <script src="./tree5.js"></script> -->
</head>

<body>
  <div class="wrap" id="treeWrap"></div>
  <div onclick="getAll()">1231</div>
  <script>
    const checkedArr = ["86811", "86825", "86826", "86834", "86839", "86841", "86842", "86843", "86844", "86845", "86846", "86847", "86848", "86850", "86852", "86853", "86854", "86855", "86862", "86863", "86815", "86780"]
    const tree = createTree(dataObj, $('#treeWrap'), new Date().getTime(), checkedArr)

    function getAll() {
      console.log(getTreeCheckedId())
    }
    // console.log(getTreeCheckedId())
    // tree.createHtml()
  </script>
</body>

</html>